export const request = (options) => {
	return new Promise((resolve, reject) => {
		let token = '';
		const header = {
			'Content-Type': 'application/json',
			...options.header
		};
		uni.request({
			url: options.url,
			method:options.menthod || 'GET',
			data: options.data|| {},
			header: header,
			success(res) {
				if (res.data.status == '2000') {
					resolve(res.data);
				}
			},
			fail: (err) => {
				reject(err);
			}
		})
	});
}



